import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import defaultImg from './assets/imgs/avatar.png';
import './assets/style/global.scss';
import vant, { Lazyload } from 'vant'
import NavBar from './components/NavBar.vue'
// 导入全局样式
import './assets/iconfont/iconfont.css'
import 'vant/lib/index.css'
const app = createApp(App)
app.config.globalProperties.baseUrl = 'http://localhost:3000';
// 注册组件库
app.use(vant)
app.use(Lazyload, {
    loading: defaultImg,
    error: defaultImg
})
// 注册全局组件
app.component('NavBar', NavBar)
app.use(store).use(router).mount('#app')
